package com.igeekhome.ccs.biz.Impl;

import com.igeekhome.ccs.biz.IOperationLogBiz;
import com.igeekhome.ccs.entity.OperationLog;
import com.igeekhome.ccs.mapper.OperationLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service
public class OperationLogBizImpl implements IOperationLogBiz {
    @Autowired
    private OperationLogMapper mapper;
    @Override
    public int save(OperationLog oplog) {
        return mapper.save(oplog);
    }

    @Override
    public List<OperationLog> getAll() {
        return mapper.getAll();
    }

    @Override
    public List<OperationLog> queryByCs(String cs) {
        return mapper.queryByCs(cs);
    }

    @Override
    public List<OperationLog> queryByTime(Date start, Date end) {
        return mapper.queryByTime(start, end);
    }
}
